import request from '@/plugins/request';
export default {
    /*.then(res => {
        // 返回数据
    })
        .catch(err => {
            // 异常情况
        })*/

// •	获取数据接口
///system/role/findByPage
// 条件查询

    findByPage(data) {
        return request({
            url: '/api/system/role/findByPage',
            method: 'post',
            data
        });
    },
    //•	新增
    // •
    addRole(data) {
        return request({
            url: '/api/system/role/addRole',
            method: 'post',
            data
        })
    },

    //•	删除接口
    ///
    // /system/role/deleteById

    deleteById(data) {
        return request({
            // ContentType: 'application/x-www-form-urlencoded',
            url: '/api/system/role/deleteById',
            method: 'post',
            data
        })
    },
    ///system/role/selectById
    // ID查询

    selectById(data) {
        return request({
            // ContentType: 'application/x-www-form-urlencoded',
            url: '/api/system/role/selectById',
            method: 'post',
            data
        })
    },
    ///system/role/changeStatus
    // 状态修改

    changeStatus(data) {
        return request({
            url: '/api/system/role/changeStatus',
            method: 'post',
            data
        })
    },

    update(data) {
        return request({
            url: '/api/system/role/update',
            method: 'post',
            data
        })
    },
}
